package me.exchange.com.modules.system.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
* @author Zheng Jie
* @date 2019-03-25
*/
@Getter
@Setter
public class DeptDto implements Serializable {

    private Long id;

    /** 部门名称*/
    private String name;

    /** 状态*/
    @NotNull
    private Boolean enabled;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<DeptDto> children;

    /** 创建人id*/
    private Long cAdminId;

    /** 创建日期*/
    private Timestamp cAdminTime;

    /** 修改人id*/
    private Long uAdminId;

    /** 修改日期*/
    private Timestamp uAdminTime;

    /** 备注*/
    private String remark;

    /** 是否删除 0删除 1未删除*/
    private Boolean isdel;

    public String getLabel() {
        return name;
    }
}